<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>轩辕短信平台</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	overflow:hidden;
}
.STYLE3 {color: #528311; font-size: 12px; }
.STYLE4 {
	color: #42870a;
	font-size: 12px;
}
-->
</style>
<script language="javascript" type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type='text/javascript' src='dwr/engine.js'></script>
<script type='text/javascript' src='dwr/util.js'></script>
<script type='text/javascript' src='dwr/interface/userAction.js'></script>
<script type='text/javascript'>
       function login(){
     var username = $('#username').val();
     if(username == ""){
       username = null;
     }
     var password = $('#password').val();
     if(password == ""){
       password = null;
     }
     userAction.isLogin(username, password, function(data){
         if(data == false){
             alert("账号错误..请重新登录 ");
         } 
         if(data == true){
            window.location.href='indexAction';
         }
     });
     
   }
</script>
</head>

<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#e5f6cf">&nbsp;</td>
  </tr>
  <tr>
    <td height="608" valign="top" background="images/login/login_03.gif"><table width="862" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="906" height="268" background="images/login/login_04.gif">&nbsp;</td>
      </tr>
      <tr>
        <td height="95"><table width="906" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="430" height="141" align="left" background="images/login/login_06.gif">&nbsp;</td>
            <td width="208" height="141" align="left" background="images/login/login_07.gif"><table width="208" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="21%" height="30"><div align="center"><span class="STYLE3">用户名</span></div></td>
                <td width="79%" height="30"><input type="text" name="username" id="username" style="height:18px; width:130px; border:solid 1px #cadcb2; font-size:12px; color:#81b432;"></td>
              </tr>
              <tr>
                <td height="30"><div align="center"><span class="STYLE3">密码</span></div></td>
                <td height="30"><input type="password" name="password" id="password" style="height:18px; width:130px; border:solid 1px #cadcb2; font-size:12px; color:#81b432;"></td>
              </tr>
              <tr>
                <td height="40" valign="middle">&nbsp;</td>
                <td height="40" valign="middle"><img src="images/login/dl.gif" width="81" height="22" border="0" usemap="#Map"></td>
              </tr>
            </table></td>
            <td width="268" height="141" align="left" background="images/login/login_08.gif">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="199" valign="top" background="images/login/login_09.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td bgcolor="#a2d962">&nbsp;</td>
  </tr>
</table>

<map name="Map"><area shape="rect" coords="3,3,36,19" href="javascript:login()"><area shape="rect" coords="40,3,78,18" href="#"></map></body>
</html>
